package com.asset.dispoal.defaultRoleMenu;

import com.asset.dispoal.defaultRoleMenu.api.GbDefaultRoleMenuService;
import com.asset.dispoal.defaultRoleMenu.dto.GbDefaultRoleMenuRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.mhuang.pacebox.springboot.core.controller.BaseController;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/18$
 */
@RestController
@Api(value = "默认角色权限配置", tags = "默认角色权限配置")
@RequestMapping("gb/defaultRoleMenu")
public class DefaultRoleMenuController extends BaseController {

    @Autowired
    GbDefaultRoleMenuService gbDefaultRoleMenuService;

    @PostMapping("modify")
    @ApiOperation(value = "修改权限配置", notes = "修改权限配置")
    public Result modify(@RequestBody GbDefaultRoleMenuRequest gbDefaultRoleMenuRequest) {
        return gbDefaultRoleMenuService.modify(gbDefaultRoleMenuRequest);
    }
}
